ColorManagement Xojo Plugin

ICCColorProfile.ConvertToColorProfileTask Method (console safe)

Creates task to convert color profile on a RawBitmap taking destination hint as parameter, creating new instance of RawBitmap with the result.

ConvertToColorProfileTask(
   bitmap as RawBitmap,
   destinationHint as ICCColorProfile.DepthValues) as EinhugurRuntime.Task

Parameters

bitmap
The RawBitmap to apply the color profile to.
destinationHint
Hint of what depth per channel you wish the result image to have.

Returns

EinhugurRuntime.Task
Handle to the conversion task or nil if there was error.

Remarks

Note: For this task the Entry and Exit code running in Xojo thread space is small. See the documentation for TypeLib plugin Task to get detailed explanation of what this means.

This method can throw ICCColorProfileException.

See Also

ICCColorProfile Class